package com.spsoft.vatoutinv.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.spsoft.vatoutinv.entity.vmsfulloutinvoice.VmsFullOutInvoiceDetails;
import com.spsoft.vatoutinv.model.dto.statistics.invoiceInfoTestDto;
import com.spsoft.vatoutinv.model.vo.statistics.InvoiceInfoTestVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface VmsFullOutInvoiceDetailsTestMapper extends BaseMapper<VmsFullOutInvoiceDetails> {
//    @Select("select * from VMS_FULL_OUTINVOICEDETAILS") // 报错版本 - 只要是换了返回值和 sql语句,就没事了.
//     VmsFullOutInvoiceDetails getData();

//    @Select("SELECT SEQ_VMS_FULL_OUTINVOICEDETAILS.NEXTVAL FROM DUAL") // 至少不报错
//    VmsFullOutInvoiceDetails getData();

    // 返回的是vo的list,需要看下逻辑.
    // 传入的是dto
//    @param 是传入xml的参数,必须这么写.
    // 传入的是dto(前端传递参数), 分页, sxjg-所辖机构
    IPage<InvoiceInfoTestVo> getData(@Param("page") IPage<InvoiceInfoTestVo> page, @Param("dto") invoiceInfoTestDto dto,@Param("sxjg") String[] sxjg);
}
